package com.six.entry;

import java.util.Date;


/**
 * 系统用户表实体类
 */
public class SysUser {
    /*主键id*/
    private long userId;
    /*用户名*/
    private String username;
    /*密码*/
    private String password;
    /*盐*/
    private String salt;
    /*邮箱*/
    private String email;
    /*手机号*/
    private String mobile;
    /*状态  0：禁用，1：正常*/
    private long status;
    /*创建者ID*/
    private long createUserId;
    /*创建时间*/
    private Date createTime;


    public SysUser() {
    }

    public SysUser(long userId, String username, String password, String salt, String email, String mobile, long status, long createUserId, Date createTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.email = email;
        this.mobile = mobile;
        this.status = status;
        this.createUserId = createUserId;
        this.createTime = createTime;
    }

    /**
     * 获取
     *
     * @return userId
     */
    public long getUserId() {
        return userId;
    }

    /**
     * 设置
     *
     * @param userId
     */
    public void setUserId(long userId) {
        this.userId = userId;
    }

    /**
     * 获取
     *
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     *
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     *
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     *
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     *
     * @return salt
     */
    public String getSalt() {
        return salt;
    }

    /**
     * 设置
     *
     * @param salt
     */
    public void setSalt(String salt) {
        this.salt = salt;
    }

    /**
     * 获取
     *
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     *
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     *
     * @return mobile
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 设置
     *
     * @param mobile
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 获取
     *
     * @return status
     */
    public long getStatus() {
        return status;
    }

    /**
     * 设置
     *
     * @param status
     */
    public void setStatus(long status) {
        this.status = status;
    }

    /**
     * 获取
     *
     * @return createUserId
     */
    public long getCreateUserId() {
        return createUserId;
    }

    /**
     * 设置
     *
     * @param createUserId
     */
    public void setCreateUserId(long createUserId) {
        this.createUserId = createUserId;
    }

    /**
     * 获取
     *
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     *
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "SysUser{userId = " + userId + ", username = " + username + ", password = " + password + ", salt = " + salt + ", email = " + email + ", mobile = " + mobile + ", status = " + status + ", createUserId = " + createUserId + ", createTime = " + createTime + "}";
    }
}
